<extend name="work/base"/>
<block name="content">
        <div class="layui-card">
            <div class="layui-card-header">服务号微信授权</div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md9">
                        必须认证微信服务号<br>
                        项目到期或者微信公众号里面取消授权将不能正常使用<br>
                        多次授权只有最后一个有效<br>
                        授权权限根据自己情况选择<br>
                        申请模板消息行业和模板
                    </div>
                    <div class="layui-col-md3">
                        <button class="layui-btn layui-btn-normal" id="wx_auth">进行微信授权</button>
                    </div>
                </div>
            </div>
        </div>
</block>

<block name="script">

    <script type="text/javascript">
        layui.use(['element', 'form', 'tree', 'layer'], function () {
            var table = layui.table
                , element = layui.element
                , form = layui.form
                , $ = layui.$
                , layer = layui.layer
                , tree = layui.tree;
            $('#wx_auth').click(function () {
                layer.open({
                    type: 2,
                    area: ['800px', '900px'],
                    content: 'https://openwx.weibuyun.com/auth/base_auth_code?token={$token}'
                });
            });

        });
    </script>
</block>

